import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

export function getAreaList(query) {
    return request({
        url: '/alm/dev/statisticalexport/area',
        method: 'get',
        params: query
    })
}

export function getAreaInfo(menuId) {
    return request({
        url: '/alm/dev/statisticalexport/' + menuId,
        method: 'get'
    })
}

// 删除菜单
export function delArea(menuId) {
    return request({
        url: '/alm/dev/statisticalexport/' + menuId,
        method: 'delete'
    })
}

// 新增菜单
export function addArea(data) {
    return request({
        url: '/alm/dev/statisticalexport/area',
        method: 'post',
        data: data
    })
}

// 修改菜单
export function updateArea(data) {
    return request({
        url: '/alm/dev/statisticalexport/area',
        method: 'put',
        data: data
    })
}

// 获取公司信息// 查询公司列表
export function getDeptList(query) {
    return request({
        url: '/system/dept/list',
        method: 'get',
        params: query
    })
}

export function getDevLoginLog(query) {
    return request({
        url: '/alm/dev/statisticalexport/getDevLoginLog',
        method: 'post',
        data: query
    })
}